package com.baofu.paycore.biz.model;

import lombok.*;

import java.util.Date;

/**
 * Description  :撤销
 * <p/>
 * Author       :LZQ
 * Date         :2014.12.01
 */
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
public class CancelBO extends BaseResBO {

    /**
     * 日期
     */
    private Date date;

    /**
     * 单号
     */
    private String payNo;

    /**
     * 货币
     */
    private String ccy;

    /**
     * 金额
     */
    private long amt;

    /**
     * 是否为实际结果(银行预授权撤销可能使用)
     *
     * true为实际结果
     * false为受理结果
     */
    private boolean realFlag;

//    public CancelBO(MainPayDO mainPayDO, ResponseBO responseBO){
//        super(responseBO.getStatus(),responseBO.getErrorCode(),responseBO.getErrorMsg());
//        this.date = mainPayDO.getRequestAcDate();
//        this.ccy = mainPayDO.getCcy();
//        this.amt = mainPayDO.getAmt();
//        this.payNo = mainPayDO.getPayNo();
//        this.realFlag = true;
//    }
//
//    public CancelBO(MainPayDO mainPayDO, ResponseBO responseBO, boolean realFlag){
//        super(responseBO.getStatus(),responseBO.getErrorCode(),responseBO.getErrorMsg());
//        this.date = mainPayDO.getRequestAcDate();
//        this.ccy = mainPayDO.getCcy();
//        this.amt = mainPayDO.getAmt();
//        this.payNo = mainPayDO.getPayNo();
//        this.realFlag = realFlag;
//    }

}
